<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="../include/include.jsp"%>

<!DOCTYPE html>
<html lang="en">
<head>
    <title>主页</title>
    <%@include file="../layout/head_file.jsp"%><!-- 包含公共引用的 js, css 等 -->
    <!-- toastr消息提示 -->
    <link href="static/assets/toastr/toastr.css" rel="stylesheet"/>
    <script src="static/assets/toastr/toastr.js"></script>
    <!-- 用户相关函数 -->
    <script src="static/assets/custom/js/user_function.js"></script>
    <script>
        $(document).ready(function () {
            //初始化分享列表
            getShareList(null, null, null, '${param.userId}', 0);
            //加载个人简介
            getProfile(${param.userId}, "myProfile");
            //加载个人粉丝
            getFansList(${param.userId}, "myFansList", 1, 6);
            //加载关注列表
            getFollowingList(${param.userId}, "myFollowing", 1, 6);
        });
    </script>
</head>
<body>
<%@include file="../layout/navbar.jsp"%><!-- 导航栏 -->
<div class="container">
    <div class="page_title">
        <span id="titie_username">我</span>的所有分享
    </div>
    <div class="row">
        <div class="col-sm-8 blog-main">
            <div id="shareList"></div>
        </div>
        <div class="blog-sidebar col-sm-3">
            <!-- 个人资料卡 -->
            <div id="myProfile"></div>
            <!-- 个人关注预览  -->
            <div id="myFollowing"></div>
            <!--个人粉丝预览-->
            <div id="myFansList"></div>
        </div>
    </div>
    <hr/>
    <div id="pageNavigator"></div>
</div>
<!-- 警告弹出框 -->
<%@include file="../layout/model_dialog.jsp"%>
<!-- 页脚 -->
<%@include file="../layout/footer.jsp" %>
</body>
</html>
